<?php
return [
//    'class' => 'yii\db\Connection',
//    'dsn' => 'mysql:host=120.24.83.21:3307;dbname=dingtalk',
//    'username' => 'dingtalk',
//    'password' => 'dingtalk1314',
//   'charset' => 'utf8',
//    'class' => 'yii\db\Connection',
//    'dsn' => 'mysql:host=localhost:3306;dbname=log',
//    'username' => 'root',
//    'password' => '123456',
//    'charset' => 'utf8',
    'class' => 'yii\db\Connection',
    'dsn' => 'mysql:host=96.44.157.18:3306;dbname=pincn_wp28',
    'username' => 'pincn_wp28',
    'password' => '980167048',
    'charset' => 'utf8',
];
//return [
//    'class' => 'yii\db\Connection',
//    'dsn' => 'mysql:host=localhost:3306;dbname=2222',
//    'username' => 'root',
//    'password' => '123456',
//    'charset' => 'utf8',
//];
//return [
//    'class' => 'yii\db\Connection',
//    'dsn' => 'mysql:host=rds36rvurra2mqy.mysql.rds.aliyuncs.com;dbname=ding',
//    'username' => 'ding',
//    'password' => 'ding1314',
//    'charset' => 'utf8',
//    // 配置主服务器
////    'masterConfig' => [
////        'username' => 'root',
////        'password' => '',
////        'attributes' => [
////            // use a smaller connection timeout
////            PDO::ATTR_TIMEOUT => 10,
////        ],
////    ],
////
////    // 配置主服务器组
////    'masters' => [
////        ['dsn' => 'mysql:host=localhost;dbname=test'],
////        ['dsn' => 'mysql:host=localhost;dbname=demo'],
////    ],
////
////    // 配置从服务器
////    'slaveConfig' => [
////        'username' => 'root',
////        'password' => '',
////        'attributes' => [
////            // use a smaller connection timeout
////            PDO::ATTR_TIMEOUT => 10,
////        ],
////    ],
////
////    // 配置从服务器组
////    'slaves' => [
////        ['dsn' => 'mysql:host=localhost;dbname=test'],
////        ['dsn' => 'mysql:host=localhost;dbname=demo']
////    ],
//];
